# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-scikit-datasets
_pkgorig=scikit-datasets
pkgver=0.2.4
pkgrel=3
pkgdesc="Scikit-learn-compatible datasets"
url="https://github.com/daviddiazvico/scikit-datasets"
arch="noarch"
license="MIT"
options="!check" # network tests | skip for now
depends="
	python3
	py3-numpy
	py3-scipy
	py3-scikit-learn
	"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/daviddiazvico/scikit-datasets/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl

	rm -r "$pkgdir"/usr/lib/python3.*/site-packages/skdatasets/tests
}

sha512sums="
7097e46a807485e594e75c58ccf242ddb4683d6b039f62ec6f188d86ae8b3f3afe36ae1552b7e2a129d3a415e50e9a21c3d806557047c42bf57a1bc580bf14a2  scikit-datasets-0.2.4.tar.gz
"
